package com.huodongjia.mapper;

import com.huodongjia.pojo.Create;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CreateMapper {

    @Select("select * from huodongjia.`create` where create_id=${userid}")
    List<Create> findByUserid(int userid);
    @Delete("delete from huodongjia.`create` where activity_id=${activityId}")
    void deleteByActivity(int activityId);
}
